package com.azier.kapacitor.script.node;

import com.azier.kapacitor.script.method.Quiet;
import com.azier.kapacitor.script.node.nodebind.CommonNodeBind;

import java.util.ArrayList;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/

/**
Has no constructor signature.
**/
/**
没有构造函数签名。
**/
public class NoOpNode extends AbstractNode implements CommonNodeBind {
    private static final String name = "noOp";

    public NoOpNode() {
        super(new ArrayList<>(),new ArrayList<>(),name);
    }

    /**
    Suppress all error logging events from this node.
    **/
    /**
    禁止来自此节点的所有错误记录事件。
    **/
    public NoOpNode quiet(){
        Quiet quiet = new Quiet();
        super.addMethod(quiet);
        return this;
    }
}